import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SALES: AppRouteRecordRaw = {
  path: '/sales',
  name: 'sales',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.sales.management',
    requiresAuth: true,
    icon: 'icon-user-group',
    order: 0,
  },
  children: [
    {
      path: '/company/list',
      name: 'CompanyList',
      component: () => import('@/views/sales/company/index.vue'),
      meta: {
        locale: 'menu.company.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/sales/list',
      name: 'SalesList',
      component: () => import('@/views/sales/index.vue'),
      meta: {
        locale: 'menu.sales.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default SALES;
